text
Functions
Compares this text to another text.
Compares this text to another text.
Creates text from bytes, optionally handling invalid UTF-8 encoding.
Returns the position of the first occurrence of the specified substring within this text, or -1 if the text is not found.
Returns the position of the first occurrence of the specified substring within this text, starting at the specified index, or -1 if the text is not found.
Returns the position of the first occurrence of the specified substring within this text, or -1 if the text is not found.
Returns the position of the first occurrence of the specified substring within this text, starting at the specified index, or -1 if the text is not found.
Returns the index within this text of the last occurrence of the specified string, or -1 if not found.
Returns the index within this text of the last occurrence of the specified string, starting from the specified startIndex, or -1 if not found.
Returns the index within this text of the last occurrence of the specified string, or -1 if not found.
Returns the index within this text of the last occurrence of the specified string, starting from the specified startIndex, or -1 if not found.
Returns true if this text matches the specified pattern using SQL LIKE syntax.
Example:
val names = ["Alice", "Victor", "Viktor", "Victoria"];
print(names @* { .like("Vi_tor") }); // prints [Victor, Viktor]
print(names @* { .like("Vic%") }); // prints [Victor, Victoria]
Returns a new text with all characters converted to lowercase.
Returns a new text with all characters converted to lowercase.
Returns true if this text starts with the specified prefix, otherwise returns false.
Returns true if this text starts with the specified prefix, otherwise returns false.
Converts the text to UTF-8 encoded bytes.
Returns a new text with all characters converted to uppercase.
Returns a new text with all characters converted to uppercase.